package models

import "time"

type CommWeimaqi struct {
	ID              int64     `gorm:"column:id" json:"id"`
	WeimaqiId       string    `gorm:"column:weimaqi_id" json:"weimaqi_id,omitempty"`
	Tag             string    `gorm:"column:tag" json:"tag,omitempty"`
	MarkeType       string    `gorm:"column:marke_type" json:"marke_type,omitempty"`
	Rssi            string    `gorm:"column:rssi" json:"rssi,omitempty"`
	IsBind          int64     `gorm:"column:is_bind" json:"is_bind,omitempty"`
	HardwareVersion string    `gorm:"column:hardware_version" json:"hardware_version,omitempty"`
	NetworkingType  int64     `gorm:"column:networking_type" json:"networking_type,omitempty"`
	Status          int64     `gorm:"column:status" json:"status"`
	CreateTime      time.Time `gorm:"column:create_time" json:"create_time,omitempty"`
	UpdateTime      time.Time `gorm:"column:update_time" json:"update_time,omitempty"`
	Devices         []Device  `gorm:"many2many:device_modular;"json:"devices,omitempty"`
}

//`gorm:"many2many:PersonAccount;association_foreignkey:idAccount;foreignkey:idPerson"`

// jointable_foreignkey:person_id
